import { reqmemberlist } from "../../http/api"
const state = {
    vip:[]
}
const getters = {
    vip(state){
        return state.vip
    }
}
const mutations = {
    changeVip(state,vip){
        state.vip = vip
    }
}
const actions = {
    reqVip(context,vip){
        reqmemberlist().then(res=>{
            if(res.data.code==200){
                context.commit("changeVip",res.data.list?res.data.list:[])
            }
        })
    }
}
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true
}